package com.platform.dao;

import com.platform.domain.model.UserAuthorization;
import com.platform.domain.model.UserAuthorizationKey;

import java.util.List;

/**
* UserAuthorization
*
* User: wangyang
* DateTime: 2012-10-08 16:11:49
*
*/
public interface UserAuthorizationDao {

    /**
    *
    * 根据主键查询UserAuthorization对象
    *
    * @param key
    * @return UserAuthorization对象
    */
    UserAuthorization selectByPrimaryKey(UserAuthorizationKey key) throws Exception;

    /**
    *
    * 根据查询条件查询符合条件的UserAuthorization对象
    *
    * @param userAuthorization
    * @return 符合条件的UserAuthorization对象List
    */
    List<UserAuthorization> select(UserAuthorization userAuthorization) throws Exception;

    /**
    *
    * 根据主键删除UserAuthorization对象
    *
    * @param key
    * @return 影响条件数
    */
    int deleteByPrimaryKey(UserAuthorizationKey key) throws Exception;

    /**
    *
    * 根据条件删除符合条件的UserAuthorization对象
    *
    * @param userAuthorization
    * @return 影响条件数
    */
    int delete(UserAuthorization userAuthorization) throws Exception;

    /**
    *
    * 插入UserAuthorization对象
    *
    * @param userAuthorization
    * @return 影响条件数
    */
    int insert(UserAuthorization userAuthorization) throws Exception;

    /**
    *
    * 更新UserAuthorization对象
    *
    * @param userAuthorization
    * @return 影响条件数
    */
    int update(UserAuthorization userAuthorization) throws Exception;

}
